<?php use_helper('I18N', 'Date') ?>
<?php include_partial('content/assets') ;
/*@var $sf_user myUser*/
$filters_arr = $sf_user->getAttribute('content.filters',array(),'admin_module');
?>

<div id="sf_admin_container">
  
<?php 
//var_dump($filters_arr);exit;
if(!empty($filters_arr['category_id']) && $filters_arr['category_id'] != globals::CATEGORY_PAGES ){
    
    $category = CategoryPeer::retrieveByPK($filters_arr['category_id']);
    ?>
    <h1><?php echo __('Items of ', array(), 'messages') ?> "<?php echo $category?>"</h1>
<?php }else{?>
    <h1><?php echo __('Simple pages', array(), 'messages') ?></h1>
<?php }?>

  <?php include_partial('content/flashes') ?>

  <div id="sf_admin_header">
    <?php include_partial('content/list_header', array('pager' => $pager)) ?>
  </div>

  <div id="sf_admin_bar">
    <?php include_partial('content/filters', array('form' => $filters, 'configuration' => $configuration)) ?>
  </div>

  <div id="sf_admin_content">
    <form action="<?php echo url_for('content_collection', array('action' => 'batch')) ?>" method="post">
    <?php include_partial('content/list', array('pager' => $pager, 'sort' => $sort, 'helper' => $helper)) ?>
    <ul class="sf_admin_actions">
      <?php include_partial('content/list_batch_actions', array('helper' => $helper)) ?>
      <?php include_partial('content/list_actions', array('helper' => $helper)) ?>
    </ul>
    </form>
  </div>

  <div id="sf_admin_footer">
    <?php include_partial('content/list_footer', array('pager' => $pager)) ?>
  </div>
</div>
